<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Admin/Flat/img/favicon.ico">
	    <link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/hdjs/hdjs.css"/>
	   <script src="{{__PUBLIC__}}/jquery-1.8.js" type="text/javascript" charset="utf-8"></script>
	    <script src="{{__PUBLIC__}}/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
	    <script type="text/javascript">
	    		$(function(){
	    			
	    			 $('#form').validate({

	    			 	// 旧密码
	    				password:{
	    					//规则
		                rule: {
		                    required: true,
		                    ajax:{url:"{{U('Admin/check')}}"},
		                },
		                // 错误信息
		                error: {
		                    required:'旧密码不能为空',
		                    
		                },
		                
		                success: '验证通过',
		                message: '请填写旧密码',
	            		},


	            		// 新密码
	            		newPassword:{
	    					//规则
		                rule: {
		                    required: true,
		                    minlen:6,
		                    maxlen:20
		                },
		                error: {
		                    required: '新密码不能为空',
		                    minlen:  '新密码不得少于6位',
		                    maxlen: '新密码不得超出20位',
		                },
		                success: '验证通过',
		                message: '请填写新密码',
	            		},


	            		// 确认新密码
	            		confirmPassword : {
	    					//规则
		                rule: {
		                    required: true,
		                    confirm: 'newPassword',
		                },
		                error: {
		                    required: '确认密码不能为空',
		                    confirm:'两次密码不一致',
		                },
		                success: '验证通过',
		                message: '请填写确认密码',
	            		},
	    			 })
	    		})
	    </script>
	</head>
	<body>
	<form id="form"  method="post">
		<div class="alert alert-success">修改密码</div>
		<div class="form-group">
			<label for="exampleInputEmail1" ><span id="hd_password"></span></label>
			<input id="exampleInputEmail1" class="form-control" type="password" placeholder="请输入旧密码"    name="password">
		</div>
		
		<div class="form-group">
			<label for="exampleInputEmail1" ><span id="hd_newPassword"></span></label>
			<input id="exampleInputEmail1" class="form-control" type="password" placeholder="请输入新密码"   name="newPassword">
		</div>

		<div class="form-group">
			<label for="exampleInputEmail1" ><span id="hd_confirmPassword"></span></label>
			<input id="exampleInputEmail1" class="form-control" type="password" placeholder="请再次输入新密码"   name="confirmPassword">
		</div>
		<button class="btn btn-primary btn-block" type="submit">确定</button>
		</form>
	</body>
</html>
